//
//  RCUIPhotoTools.h
//  xappSmartParkiOS
//
//  Created by kabu on 2018/6/14.
//  Copyright © 2018年 Alibaba. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^RCUIPhotoToolsBlock)(UIImage *reslut,NSDictionary*info);
@protocol RCUIPhotoToolsDelegate<NSObject>
- (void)image:(UIImage*)image info:(NSDictionary*)info;
@end
@interface RCUIPhotoTools : NSObject
@property (nonatomic, assign) BOOL canEditImg;
@property (nonatomic, weak) id<RCUIPhotoToolsDelegate>delegate;
/**
 展示相机选择框

 @param callBack 回调
 @param canEdit 可以编辑
 @param cuurentVc 当前vc
 @return 实例
 */
+(instancetype)showCuurentVc:(UIViewController*)cuurentVc canEidit:(BOOL)canEdit callBack:(RCUIPhotoToolsBlock)callBack;

/**
 展示相机选择器

 @param currentVc 当前Vc
 @param callBack 回调
 */
- (void)showAlertCurrentVc:(UIViewController*)currentVc callBack:(RCUIPhotoToolsBlock)callBack;


/**
 展示相机选择器

 @param cuurentVc 当前vc
 @param canEdit 能否编辑图片
 @param c_delegate 代理
 @return 实例
 */
+(instancetype)showCuurentVc:(UIViewController*)cuurentVc canEidit:(BOOL)canEdit delegate:(id<RCUIPhotoToolsDelegate>)c_delegate;


/**
 展示相机选择器

 @param currentVc 当前vc
 @param c_delegate 代理
 */
- (void)showAlertCurrentVc:(UIViewController*)currentVc delegate:(id<RCUIPhotoToolsDelegate>)c_delegate;

@end
